package com.ss.android.topic;

import com.bytedance.retrofit2.Converter;
import com.bytedance.retrofit2.Retrofit;
import com.bytedance.ttnet.utils.RetrofitUtils;

import java.util.HashMap;
import java.util.Map;

public abstract class aa {
    private static com.ss.android.topic.e.aa a;
    private static Converter.Factory b;
    private static Map c;

    static {
        a = new com.ss.android.topic.e.aa();
        b = com.bytedance.frameworks.baselib.network.http.c.a.a.a.a();
        c = new HashMap();
    }

    private static synchronized Retrofit a(String arg3) {
        Object v0_2;
        if (android.support.design.a.isTextEmpty(arg3)) {
            return null;
        } else {
            v0_2 = c.get(arg3);
            if (v0_2 == null) {
                v0_2 = RetrofitUtils.createRetrofit(arg3, a, b);
                c.put(arg3, v0_2);
            }
            return (Retrofit) v0_2;

        }
    }

    public static synchronized Object a(String arg2, Class arg3) {
        return RetrofitUtils.createService(a(arg2), arg3);
    }

    public static void a() {
    }
}

